﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage1.master" AutoEventWireup="true" CodeFile="doi-mat-khau.aspx.cs" Inherits="User_dang_ky" Title="Đổi mật khẩu" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="../CSS/user.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="clearfix">
        <div class="this-left">
             <asp:Image ID="avatar" runat="server" style="width:150px;height:96px;"/><br />
        <ul>
            <li><a id="A1" runat="server" href="~/User/cap-nhat-ho-so.aspx">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/profile1.png" /><span>Sửa thông tin</span></a></li>
                <li><a id="A2" runat="server" href="~/User/cap-nhat-avatar.aspx">
                <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/profile3.png" /><span>Hình đại diện</span></a></li>
                <li class="this-active"><a id="A3" runat="server" href="~/User/doi-mat-khau.aspx">
                <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/profile2.png" /><span>Đổi mật khẩu</span></a></li>
        </ul>
        </div>
        <div class="this-right">
             <div class="this-header">
            <p style="float:left;margin-left:10px;line-height:49px;font-size:14px;font-weight:bold;color:#6a6b6c">
                Đổi mật khẩu
            </p>
            
        </div>
        <div id="this-form">
            <div style="width:600px;margin-left:300px;margin-top:30px;">
                <span>Email của bạn</span><br />
                <asp:TextBox ID="txtEmail" runat="server" CssClass="this-textbox"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="txtEmail" ForeColor="#898989"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="Email không hợp lệ" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                    Display="Dynamic" Font-Bold="False" Font-Italic="True" ForeColor="#898989"></asp:RegularExpressionValidator>
                <br />
                <span>Mật khẩu cũ</span><br />
                <asp:TextBox ID="txtOldPassword" runat="server" CssClass="this-textbox" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3"
                        runat="server" ErrorMessage="*" ControlToValidate="txtOldPassword" ForeColor="#898989"></asp:RequiredFieldValidator>
                <br />
                <span>Mật khẩu mới</span><br />
                <asp:TextBox ID="txtNewPassword" runat="server" CssClass="this-textbox" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                        runat="server" ErrorMessage="*" ControlToValidate="txtNewPassword" ForeColor="#898989"></asp:RequiredFieldValidator>
                <br />
                <span>Xác nhận mật khẩu mới</span><br />
                <asp:TextBox ID="txtReNewPassword" runat="server" CssClass="this-textbox" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4"
                        runat="server" ErrorMessage="*" ControlToValidate="txtReNewPassword" ForeColor="#898989"></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator1" ControlToValidate="txtReNewPassword" ControlToCompare="txtNewPassword" runat="server" ErrorMessage="Password không đúng" Font-Bold="false" Font-Italic="true" ForeColor="#898989"></asp:CompareValidator>
                <br />
                <asp:Button ID="btnUpdate" runat="server" Text="Cập nhật" 
                    CssClass="this-Nutdangky" onclick="btnUpdate_Click" />
                <asp:Button ID="btnReset" runat="server" Text="Nhập lại" CssClass="this-Nuthuy" 
                    CausesValidation="false" onclick="btnReset_Click" />
                <br /><br />
                <asp:Label ID="lblInfo" runat="server" Text=""></asp:Label>
            </div> 
        </div>
        </div>
    </div>
    
    
    
</asp:Content>

